<?php
require_once '../config.php';
require_once '../dao/dao_db.php';
require_once '../dao/dao_profile.php';
$email	=trim($_POST['email']);
$phone	=trim($_POST['telphone']);
session_start();
if($_SESSION['userid']!=''){
	if($email!=''||$phone!='')
	{
		save_profile($_SESSION['userid'],$email,$phone);
		mysql_close();
		header("LOCATION:../profile.php?msgcode=1");
	}else{
		header("LOCATION:../profile.php?msgcode=0");
	}
}
?>